﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FwProject.Distribution.Dto.Statistics
{
    /// <summary>
    /// 当季汇总
    /// </summary>
    public class QuarterlySummaryDto
    {
        /// <summary>
        /// 最近三个月配送 应收 已收汇总
        /// </summary>
        public List<SummaryDto> Summarys { get; set; }

        /// <summary>
        /// 今日汇总
        /// </summary>
        public TodaySummaryDto TodaySummary { get; set; }


        public class SummaryDto
        {
            /// <summary>
            /// 年份
            /// </summary>
            public int Year { get; set; }

            /// <summary>
            /// 月份
            /// </summary>
            public int Month { get; set; }

            /// <summary>
            /// 配送
            /// </summary>
            public int Distribution { get; set; }

            /// <summary>
            /// 应收
            /// </summary>
            public decimal Receivable { get; set; }

            /// <summary>
            /// 已收
            /// </summary>
            public decimal Already { get; set; }
        }

        public class TodaySummaryDto {
            /// <summary>
            /// 今日配送
            /// </summary>
            public int TodayDistribution { get; set; }

            /// <summary>
            /// 今日回收
            /// </summary>
            public int TodayRecycling { get; set; }

            /// <summary>
            /// 今日收款
            /// </summary>
            public decimal TodayReceipt { get; set; }
        }
    }


    public class QuarterlySummaryMonthDto
    {
        /// <summary>
        /// 日期
        /// </summary>
        public string Date { get; set; }

        /// <summary>
        /// 配送总数
        /// </summary>
        public int TotalDelivery { get; set; }

        /// <summary>
        /// 收款总额
        /// </summary>
        public decimal TotalReceipts { get; set; }
    }

    public class QuarterlySummaryDayDto
    {
        /// <summary>
        /// 商品
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 餐厅
        /// </summary>
        public string RestaurantName { get; set; }

        /// <summary>
        /// 配送总数
        /// </summary>
        public int TotalDelivery { get; set; }

        /// <summary>
        /// 回收总数
        /// </summary>
        public int TotalRecycling { get; set; }

        /// <summary>
        /// 收款金额
        /// </summary>
        public decimal ReceiptAmount { get; set; } = 0m;
    }
}
